/*
 * @Author: DUST
 * @Date: 2023-06-17 16:33:57
 * @LastEditors: DUST
 * @LastEditTime: 2023-06-17 16:33:57
 * @FilePath: \koa-node-ts\app\router\foreEnd\utils.ts
 * @Description: 
 * undefined
 */
import koaRouter from "koa-router";
import UtilsController from "../../controller/UtilsController";

const utilsRouter = new koaRouter();

utilsRouter.prefix("/utils");

// 获取位置信息和天气信息
utilsRouter.get("/location/and/weather", UtilsController.getLocationAndWeather);
// 获取各大热门网站热点信息
utilsRouter.get("/newsList", UtilsController.getNewsList);
export default utilsRouter;